package com.example.mapper;

import com.example.entity.orders.OrderDetails;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface OrderDetailsMapper {
    int insert(OrderDetails orderDetails);
    int deleteById(Integer id);
    int updateById(OrderDetails orderDetails);
    List<OrderDetails> selectByOrderId(Integer orderId);

    List<OrderDetails> selectSalesCountQuantity();
    List<OrderDetails> selectReturnCountQuantity();

    OrderDetails selectFinishSalesCountQuantity(int productId);
    OrderDetails selectReturnQuantity(int orderId);

}
